package com.okq.entity;

import com.okq.entity.base.DataEntity;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;

/**
 * 描述 : 物流表实体类
 * 作者 : zdl
 * 日期 : 2017/6/27 17:35
 */
@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "tb_logistics")
public class Logistics extends DataEntity implements Serializable {
    private static final long serialVersionUID = -6155116685524645584L;
    /**
     * 客户Id
     */
    @Column(name = "customerId", length = 40)
    private String customerId;
    /**
     * 订单Id
     */
    @Column(name = "orderId", length = 40)
    private String orderId;
    /**
     * 物流名称 0：德邦 1：顺丰 2：圆通 3：申通 4：韵达 5：天天 6：...
     */
    @Column(name = "logisName")
    private Integer logisName;
    /**
     * 备注
     */
    @Column(name = "remark")
    private String remark;

    /* ---------------- 查询条件 ---------------- */
    /**
     * 客户模糊查询关键字
     */
    @Transient
    private String keyword;
    /**
     * 客户Ids
     */
    @Transient
    private String customerIds;


    public String getCustomerId() {
        return customerId;
    }

    public void setCustomerId(String customerId) {
        this.customerId = customerId;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public Integer getLogisName() {
        return logisName;
    }

    public void setLogisName(Integer logisName) {
        this.logisName = logisName;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public String getCustomerIds() {
        return customerIds;
    }

    public void setCustomerIds(String customerIds) {
        this.customerIds = customerIds;
    }
}
